/**
 * Created by user on 2015/9/7.
 */

module.exports = function (app) {
    var questionStore = require('../../controllers/mis/master/questionStore-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/mis/questionStore/questionStoreList/:page/:size', questionStore.questionStoreList);
    //
    app.post('/rest/' + RESTFullServiceVersion + '/mis/questionStore/questionStoreAdd', questionStore.questionStoreAdd);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/questionStore/questionStoreDelete', questionStore.questionStoreDelete);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/questionStore/questionStoreEdit', questionStore.questionStoreEdit);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/questionStore/questionPost', questionStore.questionPost);


    var region = require('../../controllers/mis/master/regions-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/mis/master/creatRegionByCity', region.creatRegionByCity);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/master/regionsList/:page/:size', region.regionsList);

    var integralStrategy = require('../../controllers/mis/master/integralStrategy-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/mis/integralStrategy/integralStrategyList/:page/:size', integralStrategy.integralStrategyList);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/integralStrategy/integralStrategyAdd', integralStrategy.integralStrategyAdd);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/integralStrategy/integralStrategyDelete', integralStrategy.integralStrategyDelete);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/integralStrategy/integralStrategyEdit', integralStrategy.integralStrategyEdit);

    var dataSync = require('../../controllers/mis/master/dataSync-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/mis/dataSync/secondHandSync', dataSync.secondHandSync);

    var scoreShop = require('../../controllers/mis/master/scoreShop-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/master/scoreShopList/:page/:size', scoreShop.scoreShopList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/master/scoreShopAddUpdate', scoreShop.scoreShopAddUpdate);

};